package com.css.fxfzypg.modules.baseData.repository;

import com.css.fxfzypg.modules.baseData.entity.RiskEnterpriseData;
import com.css.fxfzypg.modules.baseData.queryParams.RiskEnterpriseDataQueryParams;
import org.springframework.data.domain.Page;

import java.sql.Timestamp;
import java.util.List;

public interface RiskEnterpriseDataRepository {
   // RiskEnterpriseDataVO updateRiskEnterpriseData(RiskEnterpriseDataVO riskEnterpriseDataVO);
    RiskEnterpriseData saveRiskEnterpriseData(RiskEnterpriseData riskEnterpriseData);
    Page<RiskEnterpriseData> getAllRiskEnterpriseDataParams(RiskEnterpriseDataQueryParams queryParams);
    RiskEnterpriseData getRiskEnterpriseDataById(Integer id);
    void deleteRiskEnterpriseDatasById(List<Integer> ids, Timestamp timestamp);
    List<RiskEnterpriseData> getAll();
    void importExcel(List<RiskEnterpriseData> riskEnterpriseData);

    List<RiskEnterpriseData> getriskData(String taskId);

 Integer countByCounty(String province, String city, String county);
 Integer countByCity(String province, String city);
 Integer countByProvince(String province);

    Integer countByProvinceAndYear(String provinceName, String taskYear);
}
